package com.awenhui.commonweb.feign;

import com.awenhui.commonweb.util.CommonUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FallbackFactory;

/**
 * feign fall back
 *
 * @author zxiaozhou
 * @date 2019-04-09 12:05
 * @since JDK1.8
 */
@Slf4j
public class FeignFallback implements FallbackFactory {
    @Override
    public Object create(Throwable throwable) {
        log.error("------------FeignFallback------------>create:{}", CommonUtils.getStackTrace(throwable));
        return null;
    }
}
